package hcn.protocol.brandnew.zhenliao.yaopin;

import lombok.Data;
import javax.xml.bind.annotation.*;
import java.util.List;
import hcn.protocol.brandnew.BaseRequest;


/**
 * 同步诊断字典-响应消息（成功） - ODS_03010003_SUC
 *
 * @author enjoyLife
 */
@Data
@XmlRootElement(name = "Data")
@XmlAccessorType(XmlAccessType.FIELD)
public class SyncDiagnosticInformationResponse {

    /**
     * 总条数
     */
    @XmlElement(name = "CountsMsg")
    private CountsMsg countsMsg;
    /**
     * 诊断信息
     */
    @XmlElementWrapper(name = "DiagLists")
    @XmlElement(name = "DiagList")
    private List<DiagList> diagLists;

    @Data
    @XmlAccessorType(XmlAccessType.FIELD)
    public static class CountsMsg {

        /**
         * 总条数
         */
        @XmlElement(name = "Total")
        private Long total;
    }

    @Data
    @XmlAccessorType(XmlAccessType.FIELD)
    public static class DiagList {

        /**
         * 诊断ID
         */
        @XmlElement(name = "DiagnoseId")
        private String diagnoseId;
        /**
         * 诊断疾病编码
         */
        @XmlElement(name = "DiagnoseCode")
        private String diagnoseCode;
        /**
         * 疾病诊断名称
         */
        @XmlElement(name = "DiagnoseName")
        private String diagnoseName;
        /**
         * 诊断首拼
         */
        @XmlElement(name = "DiagnosticPinyinInitials")
        private String diagnosticPinyinInitials;
    }

}
